interface AppConfig {
  index: number;
  name: string;
  protocol: string;
}

interface AppItem {
  label: string;
  value: number;
}

// 支持的应用配置
export const APP_CONFIGS: AppConfig[] = [
  {
    index: 1,
    name: "微信",
    protocol: "weixin://",
  },
  {
    index: 2,
    name: "QQ",
    protocol: "tencent://",
  },
  {
    index: 3,
    name: "网易云音乐",
    protocol: "orpheus://",
  },
  {
    index: 4,
    name: "腾讯视频",
    protocol: "qqlive://",
  },
  {
    index: 5,
    name: "腾讯会议",
    protocol: "wemeet://",
  },
];

// 将 APP_CONFIGS 转换为 AppItem 格式的辅助函数
export const getAppList = (): AppItem[] => {
  return APP_CONFIGS.map((app) => ({
    label: app.name,
    value: app.index,
  }));
};
